<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="http://www.baidu.com" onclick="return confirm('是不是要打开百度？')">百度网</a><br>
<br>
<a href="u.php?id=30" onclick="return confirm('是不是要删除？')">删除</a>
</body>
</html>